package model;

import java.util.ArrayList;
import java.util.List;

public class Book {
		private String name;
		private String cover;
		private List<Chapter> chapters = new ArrayList<Chapter>();
		
		public void debug() {
			System.out.println("Bookname: " + getName());
			System.out.println("Cover: " + getCover());
			for (Chapter chapter : getChapters()) {
				chapter.debug();
			}
		}

		public String getName() {
			return name;
		}

		public void setName(String name) {
			this.name = name;
		}

		public String getCover() {
			return cover;
		}

		public void setCover(String cover) {
			this.cover = cover;
		}

		public List<Chapter> getChapters() {
			return chapters;
		}

		public void setChapters(List<Chapter> chapters) {
			this.chapters = chapters;
		}
	}